Skip to content

Update syntax.md #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Update syntax.md #653

wants to merge 1 commit into from

Conversation

berwin
Copy link
Contributor

@berwin berwin commented Jan 20, 2018

No description provided.

Copy link
Member

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文中没有“内部的”这个含义,且整体上我更倾向于原译。另外中英文之间需要有空格,参照该仓库“如何参与贡献”部分的说明。
谢谢

@Jinjiang Jinjiang requested a review from Justineo January 23, 2018 14:59
@@ -6,7 +6,7 @@ order: 4

Vue.js 使用了基于 HTML 的模板语法,允许开发者声明式地将 DOM 绑定至底层 Vue 实例的数据。所有 Vue.js 的模板都是合法的 HTML ,所以能被遵循规范的浏览器和 HTML 解析器解析。

在底层的实现上,Vue 将模板编译成虚拟 DOM 渲染函数。结合响应系统,在应用状态改变时,Vue 能够智能地计算出重新渲染组件的最小代价并应用到 DOM 操作上
在底层的实现上,Vue 将模板编译成虚拟 DOM 渲染函数。结合响应系统,当应用内部的状态发生变化时,Vue可以聪明的找出最小数量的组件进行重新渲染与最少量的DOM操作
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined with the reactivity system, Vue is able to intelligently figure out the minimal number of components to re-render and apply the minimal amount of DOM manipulations when the app state changes.

当直译不太通顺的时候可以适当意译,我建议的翻译:

“结合响应系统,Vue 能够智能地计算出最少需要重新渲染多少组件,并把 DOM 操作次数减到最少。”

/ping @Jinjiang

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK deal

Copy link
Member

@Jinjiang Jinjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

经过讨论,建议调整为“结合响应系统,Vue 能够智能地计算出最少需要重新渲染多少组件,并把 DOM 操作次数减到最少。”
谢谢

@berwin berwin mentioned this pull request Jan 24, 2018
@berwin
Copy link
Contributor Author

berwin commented Jan 24, 2018

额,,,不好意思,我提交了一个新的pull request,上一次我fork的仓库被我删了。新提交的pull request 在 #656

Justineo pushed a commit that referenced this pull request Jan 24, 2018
上一次fork的仓库被我删了,我重新fork了一个仓库把文档改成了咱们上次讨论的结果#653
@Justineo Justineo closed this Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants